<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>IFONLY | 登陆</title>
    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
    <!-- Bootstrap 3.3.2 -->
    <link href="${ctx!}/static/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
    <!-- Font Awesome Icons -->
    <link href="${ctx!}/static/font-awesome/font-awesome.min.css" rel="stylesheet" type="text/css"/>
    <!-- Theme style -->
    <link href="${ctx!}/static/dist/css/AdminLTE.min.css" rel="stylesheet" type="text/css"/>
    <!-- iCheck -->
    <link href="${ctx!}/static/plugins/iCheck/square/blue.css" rel="stylesheet" type="text/css"/>
    <link href="${ctx!}/static/plugins/supersized/supersized.css" rel="stylesheet" type="text/css"/>

    <link href="${ctx!}/static/plugins/validation/validationEngine.jquery.css" rel="stylesheet" type="text/css"/>

    <!--[if lt IE 9]>
    <script src="${ctx!}/static/libs/html5shiv.js"></script>
    <script src="${ctx!}/static/libs/respond.min.js"></script>
    <![endif]-->
</head>
<body class="login-page">
<div class="login-box">
    <div class="login-box-body">
        <p class="login-box-msg">用户登录</p>
        <form action="${ctx!}/login" method="post" id="login-form">
            <#if message??>
                    <div class="callout callout-danger">
                        <h4>系统提示!</h4>
                        <p>${message!}</p>
                    </div>
            </#if>
            <div class="form-group has-feedback">
                <input type="text" name="username" class="form-control validate[required]" placeholder="账号"/>
                <span class="glyphicon glyphicon-envelope form-control-feedback"></span>
            </div>
            <div class="form-group has-feedback">
                <input type="password" name="password" class="form-control validate[required]" placeholder="密码"/>
                <span class="glyphicon glyphicon-lock form-control-feedback"></span>
            </div>
            <div class="row">
                <div class="col-xs-8">
                    <div class="checkbox icheck">
                        <label>
                            <input type="checkbox" name="rememberMe" value="1"> 记住我
                        </label>
                    </div>
                </div><!-- /.col -->
                <div class="col-xs-4">
                    <button type="submit" class="btn btn-primary btn-block btn-flat">登陆</button>
                </div><!-- /.col -->
            </div>
        </form>

        <div class="social-auth-links" style="border-top: 1px solid #d2d6de">
            <p></p>
            <a href="#">忘记密码?</a>
        </div>


    </div>
</div>

<script src="${ctx!}/static/plugins/jQuery/jQuery-2.1.3.min.js"></script>
<script src="${ctx!}/static/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="${ctx!}/static/plugins/iCheck/icheck.min.js" type="text/javascript"></script>
<script src="${ctx!}/static/plugins/supersized/supersized.js" type="text/javascript"></script>

<script src="${ctx!}/static/plugins/validation/jquery.validationEngine.js" type="text/javascript"></script>
<script src="${ctx!}/static/plugins/validation/jquery.validationEngine-zh_CN.js" type="text/javascript"></script>

<script>
    var g = (function() {
        return {
            ctx : '${ctx}'
        }
    })();
</script>
<script src="${ctx!}/static/views/login.js" type="text/javascript"></script>

</body>
</html>